<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>通知详情</title>
  <link rel="stylesheet" href="../styles/common.css">
  <style>
    body {
      margin: 0;
      padding: 0;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
      background: #f5f5f5;
      overflow: hidden;
    }

    .detail-container {
      height: 100vh;
      display: flex;
      flex-direction: column;
      background: white;
    }

    .detail-header {
      padding: 10px 30px;
      border-bottom: 1px solid #e8e8e8;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: white;
      color: #262626;
      -webkit-app-region: drag;
    }

    .detail-title {
      font-size: 16px;
      font-weight: 600;
      margin: 0;
      user-select: none;
    }

    .close-btn {
      background: transparent;
      border: none;
      width: 33.6px;
      height: 33.6px;
      border-radius: 16.8px;
      cursor: pointer;
      font-size: 19.2px;
      color: #8c8c8c;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
      -webkit-app-region: no-drag;
      margin-right: -3px;
    }

    .close-btn:hover {
      background: #f5f5f5;
      color: #262626;
      transform: scale(1.1);
    }

    .detail-content {
      flex: 1;
      overflow-y: auto;
      padding: 30px;
    }

    .notification-title-large {
      font-size: 28px;
      font-weight: 600;
      color: #262626;
      margin-bottom: 16px;
      line-height: 1.4;
    }

    .priority-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 2px 8px;
      border-radius: 10px;
      font-size: 12px;
      font-weight: 500;
      white-space: nowrap;
      flex-shrink: 0;
      margin-left: auto;
      transform: translateX(-367px);  /* 向右移动40px (-407+40=-367) */
    }

    .priority-badge.priority-urgent {
      background: #fff1f0;
      color: #ff4d4f;
      border: 1px solid #ffccc7;
    }

    .priority-badge.priority-high {
      background: #fff7e6;
      color: #fa8c16;
      border: 1px solid #ffd591;
    }

    .priority-badge.priority-normal {
      background: #e6f7ff;
      color: #1890ff;
      border: 1px solid #91d5ff;
    }

    .priority-badge.priority-low {
      background: #f5f5f5;
      color: #8c8c8c;
      border: 1px solid #d9d9d9;
    }

    .notification-meta {
      display: flex;
      align-items: center;
      gap: 16px;
      color: #8c8c8c;
      font-size: 14px;
      margin-bottom: 30px;
      padding-bottom: 20px;
      border-bottom: 1px solid #f0f0f0;
      line-height: 1;
      flex-wrap: nowrap;
    }

    .meta-item {
      display: inline-flex;
      align-items: center;
      font-size: 14px;
      white-space: nowrap;
    }

    .meta-item span {
      font-size: 14px;
    }

    .notification-message-large {
      font-size: 16px;
      line-height: 1.8;
      color: #595959;
      white-space: pre-wrap;
      word-wrap: break-word;
    }

    .notification-image-container {
      margin: 20px 0;
      text-align: center;
    }

    .notification-image-container img {
      max-width: 100%;
      max-height: 400px;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      cursor: pointer;
      transition: transform 0.2s;
    }

    .notification-image-container img:hover {
      transform: scale(1.02);
    }

    .notification-footer {
      display: none;
    }

    .btn {
      padding: 8px 20px;
      border: 1px solid #d9d9d9;
      border-radius: 6px;
      background: white;
      cursor: pointer;
      font-size: 14px;
      transition: all 0.2s;
      -webkit-app-region: no-drag;
    }

    .btn:hover {
      border-color: #40a9ff;
      color: #40a9ff;
    }

    .btn-primary {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
      border: none;
    }

    .btn-primary:hover {
      opacity: 0.9;
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }

    .empty-state {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 100%;
      color: #8c8c8c;
    }

    .empty-icon {
      font-size: 64px;
      margin-bottom: 16px;
    }

    ::-webkit-scrollbar {
      width: 8px;
    }

    ::-webkit-scrollbar-track {
      background: #f0f0f0;
    }

    ::-webkit-scrollbar-thumb {
      background: #bfbfbf;
      border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
      background: #999;
    }
  </style>
</head>
<body>
  <div class="detail-container">
    <div class="detail-header">
      <h1 class="detail-title">通知详情</h1>
      <button class="close-btn" id="closeBtn">✕</button>
    </div>

    <div class="detail-content" id="detailContent">
      <div class="empty-state">
        <div>加载中...</div>
      </div>
    </div>

    <div class="notification-footer">
      <button class="btn-primary btn" id="markReadBtn">标记已读</button>
    </div>
  </div>

  <script src="../scripts/notification-detail.js"></script>
</body>
</html>
